package com.jnevision.salary.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jnevision.common.CommonQuery;
import com.jnevision.salary.model.Salary;
import com.jnevision.salary.model.SalaryVO;

/**
 * <p>
 * 薪资信息 Mapper 接口
 * </p>
 *
 * @author gavin
 * @since 2019-07-13
 */	
@Mapper
public interface SalaryMapper extends BaseMapper<Salary> {
    IPage<Salary> depositBase(Page<Salary> page, @Param("query") CommonQuery query);

    IPage<SalaryVO> salaryRecord(Page<SalaryVO> page, @Param("query") CommonQuery query,
        @Param("insurance") boolean insurance);
    
    List<SalaryVO> salaryRecord(@Param("query") CommonQuery query,
            @Param("insurance") boolean insurance);
}
